package com.party.core.model.photo;

import com.google.common.collect.Lists;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: 时间线输出
 * @Author: yangshoukun
 * @Date: 2018/6/7 14:49
 */
public class PhotosImgTimeLine implements Serializable {
    private static final long serialVersionUID = 6466290297333770082L;

    private String takeTime;

    private List<PhotosImgInfo> imgs = Lists.newArrayList();

    public String getTakeTime() {
        return takeTime;
    }

    public void setTakeTime(String takeTime) {
        this.takeTime = takeTime;
    }

    public List<PhotosImgInfo> getImgs() {
        return imgs;
    }

    public void setImgs(List<PhotosImgInfo> imgs) {
        this.imgs = imgs;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof PhotosImgTimeLine)) return false;

        PhotosImgTimeLine that = (PhotosImgTimeLine) o;

        if (takeTime != null ? !takeTime.equals(that.takeTime) : that.takeTime != null) return false;
        return imgs != null ? imgs.equals(that.imgs) : that.imgs == null;
    }

    @Override
    public int hashCode() {
        int result = takeTime != null ? takeTime.hashCode() : 0;
        result = 31 * result + (imgs != null ? imgs.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "PhotosImgTimeLine{" +
                "takeTime='" + takeTime + '\'' +
                ", imgs=" + imgs +
                '}';
    }
}
